package com.fanqiechaodan.visitor;

import lombok.Data;

/**
 * @author fanqiechaodan
 * @Classname Cat
 * @Description 具体元素;猫
 */
@Data
public class Cat implements Animal{

    private String sound;

    private int age;

    public Cat(String sound, int age) {
        this.sound = sound;
        this.age = age;
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visitor(this);
    }
}
